<html>
<head><meta charset="utf-8"><title>Does Miri know about rustup&#x27;s toolchains when installing? · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Does.20Miri.20know.20about.20rustup&#x27;s.20toolchains.20when.20installing.3F.html">Does Miri know about rustup&#x27;s toolchains when installing?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="172528275"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Does%20Miri%20know%20about%20rustup%27s%20toolchains%20when%20installing%3F/near/172528275" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Does.20Miri.20know.20about.20rustup&#x27;s.20toolchains.20when.20installing.3F.html#172528275">(Aug 05 2019 at 18:52)</a>:</h4>
<div class="codehilite"><pre><span></span>cargo +nightly-2019-08-01 miri --bin hash_file src/lib.rs
It seems you do not have the rust-src component installed. I will run `rustup component add rust-src`. Proceed? [Y/n]
</pre></div>


<p>Would it have installed the component in the right toolchain for me?</p>



<a name="172533635"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Does%20Miri%20know%20about%20rustup%27s%20toolchains%20when%20installing%3F/near/172533635" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Does.20Miri.20know.20about.20rustup&#x27;s.20toolchains.20when.20installing.3F.html#172533635">(Aug 05 2019 at 20:05)</a>:</h4>
<p>hm, good question</p>



<a name="172533641"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Does%20Miri%20know%20about%20rustup%27s%20toolchains%20when%20installing%3F/near/172533641" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Does.20Miri.20know.20about.20rustup&#x27;s.20toolchains.20when.20installing.3F.html#172533641">(Aug 05 2019 at 20:05)</a>:</h4>
<p>is this a <code>rustup</code>-installed Miri or a self-compiled one?</p>



<a name="172533700"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Does%20Miri%20know%20about%20rustup%27s%20toolchains%20when%20installing%3F/near/172533700" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Does.20Miri.20know.20about.20rustup&#x27;s.20toolchains.20when.20installing.3F.html#172533700">(Aug 05 2019 at 20:06)</a>:</h4>
<p>I think this depends on whether rustup sets the right env vars for itself. not sure if Miri would even have a good way to do something about that.</p>



<a name="172533707"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Does%20Miri%20know%20about%20rustup%27s%20toolchains%20when%20installing%3F/near/172533707" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Does.20Miri.20know.20about.20rustup&#x27;s.20toolchains.20when.20installing.3F.html#172533707">(Aug 05 2019 at 20:06)</a>:</h4>
<p>do you want to open an issue about this?</p>



<a name="172548145"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Does%20Miri%20know%20about%20rustup%27s%20toolchains%20when%20installing%3F/near/172548145" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Does.20Miri.20know.20about.20rustup&#x27;s.20toolchains.20when.20installing.3F.html#172548145">(Aug 05 2019 at 23:46)</a>:</h4>
<p>Sure; in Miri?</p>



<a name="172567202"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Does%20Miri%20know%20about%20rustup%27s%20toolchains%20when%20installing%3F/near/172567202" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Does.20Miri.20know.20about.20rustup&#x27;s.20toolchains.20when.20installing.3F.html#172567202">(Aug 06 2019 at 07:48)</a>:</h4>
<p>yes</p>



<a name="172676769"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Does%20Miri%20know%20about%20rustup%27s%20toolchains%20when%20installing%3F/near/172676769" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Does.20Miri.20know.20about.20rustup&#x27;s.20toolchains.20when.20installing.3F.html#172676769">(Aug 07 2019 at 13:19)</a>:</h4>
<p>For those following along at home, it turns out that rustup / miri <em>would</em> have done the right thing, and <strong>RalfJ</strong>  has updated Miri to indicate that. <span aria-label="tada" class="emoji emoji-1f389" role="img" title="tada">:tada:</span></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>